package com.javacrafting.mifos.service;

import java.util.List;

import com.javacrafting.mifos.domain.LoanProductRepository;
import com.javacrafting.mifos.domain.Product;

public class LoanProductServiceDefault implements LoanProductService {

	private final LoanProductRepository loanProductRepository;

	public LoanProductServiceDefault(
			final LoanProductRepository loanProductRepository) {
		this.loanProductRepository = loanProductRepository;
	}

	public List<Product> findAllLoanProducts() {
		return loanProductRepository.findAllProducts();
	}

}
